<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <style type="text/css">
    .info-box-text {
        color: #777;
    }
    
    .info-box-number {
        font-size: 22px;
        color: #333;
    }
	
	.trstyle0 {
        background-color: #e8e8e8;
    }
    .noty_message_h{ height: 50px; padding: 15px; }
    .noty_text{ font-size: 16px; font-weight: bold; }
    .desc{ font-size: 12px; color: #999; }

    </style>
    
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
            </section>
            <!-- Main content -->
            <section class="content">
                
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header with-border">
                                <h3 class="box-title">制作码列表</h3>
                                
                                <div class="box-tools" style="right: 300px; top: 1px;">
                                    <button type="button" class="btn btn-info btn-xs" style="float:right; margin-top:8px; margin-bottom:8px;" onClick="javascript:window.location.href='__APP__/Admin/Code/add'">新增10条制作码</button>
                                </div>

                                <div class="box-tools">
                                    <form action="" method="GET" role="form">
                                        <div class="input-group input-group-sm" style="width: 250px;">
                                            <select name="uid" class="form-control">
                                                <option value="">- 无 -</option>
                                                <volist name="supplier" id="vo">
                                                <eq name="vo.uid" value="$Think.get.uid">
                                                <option selected="selected" value="{$vo.uid}">{$vo.name}</option>
                                                <else/>
                                                <option value="{$vo.uid}">{$vo.name}</option>
                                                </eq>
                                                </volist>
                                            </select>
                                            <div class="input-group-btn">
                                                <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                            </div>
                                        </div>
                                    </form>
                                </div>

                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <th style="width:150px;">制作码</th>
                                            <th style="width:200px; text-align:center;">所属供应商</th>
                                            <th style="text-align:center;">订单号</th>
                                            <th style="width:300px; text-align:center;">时间</th>
                                            <th style="width:150px; text-align:left;">操作</th>
                                        </tr>
                                        <notempty name="list">
                                        <volist name="list" id="vo">
                                        <tr>
                                            <td>{$vo.code}</td>
                                            <td style="text-align:center;">{$vo.name}</td>
                                            <td style="text-align:center;">{$vo.order_no}</td>
                                            <td style="text-align:center;">
                                            	创建时间：{$vo.ctime}<eq name="vo.status" value="0"><br/>使用时间：{$vo.utime}</eq>
                                            </td>
                                            <td style="text-align:left;">
                                                <button type="button" class="btn btn-info   btn-xs" style="margin-top:8px;" onClick="javascript:window.location.href='__APP__/Admin/Code/edit/code_id/{$vo.code_id}/p/{$Think.get.p|default=1}'">修改/查看</button>
                                                <empty name="vo.order_no">
                                                <a class="btn btn-danger btn-xs" style="margin-top:8px;" href="__APP__/Admin/Code/clist/op/del/code_id/{$vo.code_id}/p/{$Think.get.p|default=1}" onClick="javascript:if(confirm('确认删除')){return true;}else{return false;}" role="button">删除</a>
                                                </empty>
                                            </td>
                                        </tr>
                                        </volist>
                                        <else/>
                                        <tr>
                                            <td colspan="5" align="">暂时没有记录 </td>
                                        </tr>
                                        </notempty>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer clearfix">
                                <ul class="pagination pagination-sm no-margin pull-right">
                            		{$show}
                        		</ul>
                            </div>
                        </div>
                        <!-- /.box -->
                    </div>
                </div>
                
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />

<script type="text/javascript">
$("#PayCode").addClass("active");
$("#PayCodeEdit").addClass("active");
</script>


</body>

</html>
